<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script
  src="https://code.jquery.com/jquery-2.2.4.min.js"
  integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
  crossorigin="anonymous"></script>
</head>
<body>
  <textarea id="text" name="" cols="30" rows="10"></textarea>
  <a id="btn">去掉换行</a>
  <div id="result"></div>
  <script>
    $(function(){
      $('#btn').on('click',function(){
        var text = $('#text').val()
        // .replace(/[\r\n]/g,'').replace(/[、]/g,'、\r\n').replace(/[。]/g,'。\r\n').replace(/[？]/g,'？\r\n')
        console.log(text)
        $('#result').text(text)
        text = $('#result').text()
        .replace(/[\r\n]/g,'').replace(/[、]/g,'、<br>').replace(/[。]/g,'。<br>').replace(/[？]/g,'？<br>')

        $('#result').html(text)
      });
    });
    
  </script>
</body>
</html>